package com.tensquare.notice.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author yuxiang
 * @Date 2020-12-21 17:22
 */

@FeignClient("tensquare-user")
public interface UserClient {
    @RequestMapping(value = "user/{userId}", method = RequestMethod.GET)
    Result selectById(@PathVariable("userId") String userId);
}
